@import "../../style/global.scss";

$rootName: x-number-key-board;

.#{$rootName} {
    position: fixed;
    bottom: 0;
    z-index: 10000;
    flex-wrap: wrap;
    width: 100%;
    transform: translateY(100%);
    transition: all .3s ease 0s;
    display: flex;
    visibility: hidden;

    &.#{$rootName}-show {
        transform: translateY(0);
        visibility: visible;
    }

    .#{$rootName}-item {
        width: 33.333%;
        text-align: center;
        border: 1px solid #c7c7c7;
        box-sizing: border-box;

        &>button {
            width: 100%;
            height: 100px;
            border: 0;
            background-color: #fff;
            margin: 0;
            padding: 0;
            position: relative;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                width: 100%;
                height: 100%;
                border-radius: 200px;
                transform: scale(0);
                transform-origin: center;
                opacity: .3;
                left: 0;
                top: 0;
                background-color: #333333;
            }

            &:active {
                &::after {
                    transition: all .5s ease 0s;
                    transform: scale(2);
                    opacity: 0;
                }
            }
        }
    }
}